************************************************************************
File-Name: ReadMe.txt

Date: 05/26/2021

Author: Klein, Reuben and Aseem Mahajan, and Dustin Tingley

Purpose: ReadMe file to replicate the results of Klein, Reuben and Aseem Mahajan, and Dustin Tingley. "Collective Risk and Distributional Equity in Climate Change Bargaining"


************************************************************************
Summary
************************************************************************
This file explains how to replicate the results of: Klein, Reuben and Aseem Mahajan, and Dustin Tingley.  "Collective Risk and Distributional Equity in Climate Change Bargaining".

The replication package contains the following files

:: ReadMe.txt: this file.

:: loadPackages.R: a file with a function to load/install necessary packages

:: cvFunctions.R: a file that calculates best response offers and
is used to calculate predicted offers in each round (see eqMerge.R below)

:: eqMerge.R: a file with a function that calculates predicted equilibrium outcomes and merges them with experimental results for the main treatments discussed in the paper and the subset of endogenous treatments described in Appendix D

:: ExperimentalData.csv: an csv file with outputs from the experiments
:: QualitativeData.csv: subject demographic details used to create Figures 1-5 in the appendix

:: DataPreparation.R: an R file taking the experimental dataset and outputting three files used in the manuscript's analysis:

:: EquilibriumValues.csv: equilibrium offers in each round by treatment and player
:: ContValueCalculations.csv: continuation values and maximum offers accepted/rejected by players from which equilibrium values above are calculated
:: EquilibriumExperimentCombined.csv: equilibrium.full merged with the complete dataset to compare equilibrium offers with actual offers


:: Tables.R: an R file to replicate Table 3 in the manuscript and Tables 1 and 2 in the Appendix

:: Figures.R: an R file to replicate all figures in the manuscript and appendix


************************************************************************
Instructions
************************************************************************
To replicate our results using the original data in ExperimentalOutput.Rda, run DataPreparation.R and then run Tables.R and Figures.R in either order. Alternatively, each/either of Tables.R and Figures.R can be run separately.
